package com.springmvc.service.impl;

import com.springmvc.bean.User;
import com.springmvc.dao.UserDao;
import com.springmvc.service.Userservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements Userservice {

    @Autowired
    private UserDao userDao;
    @Override
    public User getUserById(Long id) {
        User user = userDao.getNameById(id);
        return user;

    }
}
